package org.shop.dao;

import java.util.List;
import java.util.Map;

import org.shop.dao.base.BaseDaoMapper;
import org.shop.entity.JoinInfo;

public interface JoinInfoMapper extends BaseDaoMapper<JoinInfo, Long> {
   
	
	/**
	 * 查看一个活动下的报名人数
	 * @param activityId
	 * @return
	 */
	public List<JoinInfo> getJoinInfoByActivityID(Long activityId);
	
	/**
	 * app获取报名人数
	 * @param params
	 * @return
	 */
	public int getJoinCount(Map<String, Object> params);
	
	/**
	 * 查看报名人信息列表
	 * @param paramMap
	 * @return
	 */
	public List<Map<String,Object>> getJoinInfoList(Map<String, Object> paramMap);
	
	/**
	 * 查看报名人信息人数
	 * @param paramMap
	 * @return
	 */
	public int getJoinInfoCount(Map<String, Object> paramMap);
	
	/**
	 * 删除报名人信息
	 * @param activityId
	 * @return
	 */
	public int delJoinInfo(Long activityId);
	
	/**
	 * 查看自己是否有参加活动
	 * @param paramMap
	 * @return
	 */
	public int ifJoinInfo(Map<String, Object> params);
	
}